package com.mud.mudcommune.view.widget;

import com.mud.mudcommune.utils.PinyinUtils;

/**
 * Created by welcome to china on 2016/12/10.
 */

public class person_item implements Comparable<person_item>{
    private String name;
    private String pinyin;

    public person_item(String name) {
        this.name = name;
         pinyin = PinyinUtils.getPinyin(name);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPinyin() {
        return pinyin;
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }

    @Override
    public int compareTo(person_item person_item) {
        return pinyin.compareTo(person_item.getPinyin());
    }
}
